package fem2.material;

import inf.jlinalg.SolveFailedException;
import fem2.AbstractPatchTestNonlinear;
import fem2.MaterialModel;
import fem2.enu.State;
import fem2.material.ModifiedStVenantKirchhoffMM;

public class PatchTestNonlinearModifiedStVenantKirchhoff extends AbstractPatchTestNonlinear {

	public PatchTestNonlinearModifiedStVenantKirchhoff(int option) {
		super(option);
		du = 3.557827E-01;
		Uh = new double[][] { { 0.00000E00, 0.00000E00 }, { 3.557827E-01, 0.00000E00 },
				{ 3.557827E-01, -1.828818E-01 }, { 0.00000E00, -1.828818E-01 } };
	}

	@Override
	public MaterialModel createMaterial() {
		double E = 2;
		double nu = 0.3;
		double t = 1.0;
		State ss = State.PLANE_STRAIN;
		MaterialModel mm = new ModifiedStVenantKirchhoffMM(E, nu, t, 0, ss);
		return mm;
	}

	public static void main(String[] args) throws SolveFailedException {
	}

}
